import request from '@/utils/request'

// 查询待办信息列表
export function listDaiban(query) {
  return request({
    url: '/system/daiban/list',
    method: 'get',
    params: query
  })
}

// 查询待办信息详细
export function getDaiban(id) {
  return request({
    url: '/system/daiban/' + id,
    method: 'get'
  })
}

// 新增待办信息
export function addDaiban(data) {
  return request({
    url: '/system/daiban',
    method: 'post',
    data: data
  })
}

// 修改待办信息
export function updateDaiban(data) {
  return request({
    url: '/system/daiban',
    method: 'put',
    data: data
  })
}

// 删除待办信息
export function delDaiban(id) {
  return request({
    url: '/system/daiban/' + id,
    method: 'delete'
  })
}
